package com.gw.detail.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gw.detail.domain.Lkwb;
import com.gw.detail.mapper.LkwbMapper;
import com.gw.detail.service.ILkwbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 货客车外部损坏Service业务层处理
 *
 * @author WangBin
 * @date 2021-04-30
 */
@Service
public class LkwbServiceImpl extends ServiceImpl<LkwbMapper, Lkwb> implements ILkwbService {
    @Autowired
    private LkwbMapper lkwbMapper;

    /**
     * 查询货客车外部损坏
     *
     * @param id 货客车外部损坏ID
     * @return 货客车外部损坏
     */
    @Override
    public Lkwb selectLkwbById(Long id) {
        return lkwbMapper.selectLkwbById(id);
    }

    /**
     * 查询货客车外部损坏列表
     *
     * @param lkwb 货客车外部损坏
     * @return 货客车外部损坏
     */
    @Override
    public List<Lkwb> selectLkwbList(Lkwb lkwb) {
        return lkwbMapper.selectLkwbList(lkwb);
    }

    /**
     * 新增货客车外部损坏
     *
     * @param lkwb 货客车外部损坏
     * @return 结果
     */
    @Override
    public int insertLkwb(Lkwb lkwb) {
        return lkwbMapper.insertLkwb(lkwb);
    }

    /**
     * 修改货客车外部损坏
     *
     * @param lkwb 货客车外部损坏
     * @return 结果
     */
    @Override
    public int updateLkwb(Lkwb lkwb) {
        return lkwbMapper.updateLkwb(lkwb);
    }

    /**
     * 批量删除货客车外部损坏
     *
     * @param ids 需要删除的货客车外部损坏ID
     * @return 结果
     */
    @Override
    public int deleteLkwbByIds(Long[] ids) {
        return lkwbMapper.deleteLkwbByIds(ids);
    }

    /**
     * 删除货客车外部损坏信息
     *
     * @param id 货客车外部损坏ID
     * @return 结果
     */
    @Override
    public int deleteLkwbById(Long id) {
        return lkwbMapper.deleteLkwbById(id);
    }
}
